package driver.service;

import driver.dao.PayforDaoImpl_u;
import driver.dao.PayforDao_u;
import driver.entity.Payfor;

import java.sql.SQLException;
import java.util.ArrayList;
public class PayforServiceImple_u implements  PayforService_u {
    private PayforDao_u dao=new PayforDaoImpl_u();
    @Override
    public boolean apply_for(Payfor payfor) throws SQLException {
        return dao.apply_for(payfor);
    }

    @Override
    public ArrayList<Payfor> select_all(String school_num,String phone_num) throws SQLException {
        return dao.select_all(school_num,phone_num);
    }

    @Override
    public Payfor show_detail(String payfor_id) throws SQLException {
        return dao.show_detail(payfor_id);
    }

    /*public static void main(String[] args) throws SQLException {
        Payfor payfor = new PayforServiceImple_u().show_detail("5");
        System.out.println(payfor.toString());


    }*/
}
